{% extends 'student/base.html' %}

{% load static %}

{% block title %}学生管理-ZZN'S WEBSITE{% endblock  %}

{% block main %}
<div class="null">

</div>
<main class="container">
    <table class="table table-light table-hover table-striped">
        <thead class="thead-dark">
        <tr>
            <th>No.</th>
            <th>姓名</th>
            <th>学号</th>
            <th>学院</th>
            <th>班级</th>
            <th>QQ</th>
            <th>手机号码</th>
            <th>详细信息</th>
        </tr>
        </thead>
        {% for item in person %}
        <tr>
            <td scope="row">{{ forloop.counter }}</td>
            <td>{{ item.Name }}</td>
            <td>{{ item.Code }}</td>
            <td>{{ item.College }}</td>
            <td>{{ item.Class }}</td>
            <td>{{ item.QQ }}</td>
            <td>{{ item.Tel }}</td>
            <td>
                <a href="{% url 'student:Change' item.id %}">
                    <button class="btn btn-primary btn-sm">详细信息</button>
                </a>
            </td>

        </tr>
        {% endfor %}


    </table>
    <div class="text-center">
        <a href="{% url 'student:Addnew' %}">
            <button class="btn btn-primary btn-lg">添加</button>
        </a>
    </div>
</main>
<div class="null"></div>


{% endblock main %}